SetOverwrite {Concrete Italian DM 14 292}

SetOverwrite

Syntax

SapObject.SapModel.DesignConcrete.Italian_DM_14_2_92.SetOverwrite

VB6 Procedure

Function SetOverwrite(ByVal Name As String, ByVal Item As Long, ByVal Value As Double, Optional ByValItemType As eItemType = Object) As Long

Parameters

Name

The name of an existing frame object or group, depending on the value of the ItemType item.

Item

This is an integer between 1 and 12, inclusive, indicating the overwrite item considered.

1 = Framing type

2 = Live load reduction factor

3 = Unbraced length ratio, Major

4 = Unbraced length ratio, Minor

5 = Effective length factor, K Major

6 = Effective length factor, K Minor

7 = Amplification Coefficient, Omega Major

8 = Amplification Coefficient, Omega Minor

9 = Moment coefficient, c Major

10 = Moment coefficient, c Minor

11 = Moment coefficient, c_sway Major

12 = Moment coefficient, c_sway Minor

Value

The value of the considered overwrite item.

1 = Framing type

0 = Program Default

1 = Sway

2 = Braced

2 = Live load reduction factor

Value >= 0; 0 means use program determined value.

3 = Unbraced length ratio, Major

Value >= 0; 0 means use program determined value.

4 = Unbraced length ratio, Minor

Value >= 0; 0 means use program determined value.

5 = Effective length factor, K Major

Value >= 0; 0 means use program determined value.

6 = Effective length factor, K Minor

Value >= 0; 0 means use program determined value.

7 = Amplification coefficient, Omega Major

Value >= 0; 0 means use program determined value.

8 = Amplification coefficient, Omega Minor

Value >= 0; 0 means use program determined value.

9 = Moment coefficient, c Major

Value >= 0; 0 means use program determined value.

10 = Moment coefficient, c Minor

Value >= 0; 0 means use program determined value.

11 = Moment coefficient, c_sway Major

Value >= 0; 0 means use program determined value.

12 = Moment coefficient, c_sway Minor

Value >= 0; 0 means use program determined value.

ItemType

This is one of the following items in the eItemType enumeration:

Object = 0

Group = 1

SelectedObjects = 2

If this item is Object, the assignment is made to the frame object specified by the Name item.

If this item is Group, the assignment is made to all frame objects in the group specified by the Name item.

If this item is SelectedObjects, assignment is made to all selected frame objects, and the Name item is ignored.

Remarks

This function sets the value of a concrete design overwrite item.

The function returns zero if the item is successfully set; otherwise it returns a nonzero value.

VBA Example

Sub SetConcreteDesignOverwriteItemItalian_DM_14_2_92()

'dimension variables

Dim SapObject as cOAPI

Dim SapModel As cSapModel

Dim ret As Long

'createSap2000 object

Set SapObject= New Sap2000v16.SapObject

'startSap2000 application

SapObject.ApplicationStart

'create SapModel object

Set SapModel= SapObject.SapModel

'initialize model

ret= SapModel.InitializeNewModel

'createnew concrete frame section property

ret= SapModel.PropFrame.SetRectangle("R1", "4000Psi", 20, 12)

'create model from template

ret= SapModel.File.New2DFrame(PortalFrame, 2, 144, 2, 288, True, "R1", "R1")

'set concrete design code

ret= SapModel.DesignConcrete.SetCode("Italian DM 14-2-92")

'set overwrite item

ret= SapModel.DesignConcrete.Italian_DM_14_2_92.SetOverwrite("8", 1, 2)

'closeSap2000

SapObject.ApplicationExit False

Set SapModel= Nothing

Set SapObject= Nothing

End Sub

Release Notes

Initial release in version 11.03.

See Also

GetOverwrite